#include <QCoreApplication>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    double A,B,C;
    cout<<"Vvedite tri chisla: ";
    cin>>A;
    cin>>B;
    cin>>C;
    if ((A>B && B>C) || (A<B && B<C))
    {A=2*A;B=B*2;C=2*C;}
    else
        {A=-A;B=-B;C=-C;}
    cout<<"A,B,C: "<<endl<<A<<endl<<B<<endl<<C;
    return a.exec();
}
